<%--
  Created by IntelliJ IDEA.
  User: xueal
  Date: 2017/10/19
  Time: 11:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.xan.dao.PlayerEntity" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>player</title>
</head>
<body>
<table>
    <%
        List<PlayerEntity> list_player = (List<PlayerEntity>)request.getAttribute("list_player");
    %>
    <%
        for(PlayerEntity player : list_player){
    %>
        <li><%=player.getId()%></li>
        <li><%=player.getName()%></li>
    <%
        }
    %>
    <%--<c:forEach items="${list_player}" var="player">--%>
        <%--<br />--%>
        <%--<c:out value="${player.UUID}"></c:out>--%>
        <%--<c:out value="${player.name}"></c:out>--%>
    <%--</c:forEach>--%>
</table>
<%
    java.text.SimpleDateFormat simpleDateFormat = new java.text.SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss");
    java.util.Date currentTime = new java.util.Date();
    String time = simpleDateFormat.format(currentTime).toString();
//    out.println("当前时间为："+time);
%>
<%=time%>
</body>
</html>
